import request from '@/utils/request'

// 查询直播间信息列表
export function listRoom(data) {
  return request({
    url: '/admin/room/pageList',
    method: 'post',
    data: data
  })
}

// 查询直播间信息详细
export function getRoom(id) {
  return request({
    url: '/admin/room/query/' + id,
    method: 'get'
  })
}

// 新增直播间信息
export function addRoom(data) {
  return request({
    url: '/admin/room/add',
    method: 'post',
    data: data
  })
}

// 修改直播间信息
export function updateRoom(data) {
  return request({
    url: '/admin/room/update',
    method: 'post',
    data: data
  })
}

// 删除直播间信息
export function delRoom(id) {
  return request({
    url: '/admin/room/delete/' + id,
    method: 'delete'
  })
}

// 导出直播间信息
export function exportRoom(query) {
  return request({
    url: '/admin/room/export',
    method: 'get',
    params: query
  })
}
